#ifndef AUTHENTICATION_H
#define AUTHENTICATION_H

#include <QObject>
#include "shorttcpclient.h"
#include <memory>
#include "Msg/msgbase.h"

class Authentication : public QObject
{
    Q_OBJECT
public:
    explicit Authentication(QObject *parent = nullptr);

    bool Login(const QString qsUser, const QString qsPwd, QString& qsErrMsg);

    void Init();
protected:
    bool GetNetAddress(QString& qsIP, int& nPort);
signals:

public slots:

private:
    ShortTcpClient  m_comClient;
    QString     m_qsServerName;
    MsgBase     m_req8006;
};

#endif // AUTHENTICATION_H
